home *** CD-ROM | disk | FTP | other *** search
- SetENV
-
- Format: SETENV [<name>] [<string>] [SAVE]
- Template: NAME,SAVE/S,STRING/F
- Purpose: To set a global variable
- Path: Internal
- Specification: SETENV with <name> and <string> arguments creates a new
- global environment variable. The first word after SETENV is taken
- as the <name>. Everything else on the command line is taken as the
- <string> argument. Quotation marks are not required.
-
- SETENV with no arguments list the current global variables. Global
- variables are stored in ENV: and are used by all processes in parallel.
- However, if a local variable (defined by SET) and a global variable share
- the same name, the local variable will be used.
-
- Environent variables are called by scripts or other commands by including
- a dollar sign ($) in front of the variable name.
-
- To remove a global variable definition, use the UNSETENV command.
-
- If the SAVE command line switch has been used, the variable will also be
- saved out to disk making it permanent, i.e. reset-persistent. The SAVE
- keyword must be placed immediately behind the SETENV command as it will
- be otherwise interpreted as part of the variable definition.
-
- If SAVE has been specified, the same variable will remain to be defined
- even after a reboot and after a power-down cycle. Permanent environment
- variables will be saved in ENVARC:
-
- Examples:
-
- 1> SETENV Editor Extras2.0/Tools/MEmacs
-
- creates the environment variable Editor which can be used with the More
- utility. This specfies the ediro as being MEmacs, loocated in the Tools
- drawer of the Extras2.0 disk. The variable Editor is available in any
- shell.
-
- To make the above choice permanent, use
-
- 1> SETENV SAVE Editor Extras2.0/Tools/MEmacs
-
- The following line will select the editor "Ed" instead up to the next
- reboot:
-
- 1> SETENV Editor C:Ed
-
-
- Some implementations of the ENV: device will copy environment variables
- from the permanent storage device ENVARC: to ENV: only when needed. If
- such a device is used, SETENV without arguments will only list the
- environment variables that have been used. A complete list can be obtained
- by
-
- 1> list ENVARC:
-
- See also: GETENV, UNSETENV
-